package com.designPattern.responsibilityChain;

/**
 * @Auther: zwg
 * @Date: 2019/2/20 14:24
 * @Description: 处理指定范围的数据
 */
public class LimitSupport  extends  Support{

    private int limit;

    public LimitSupport(String name, int limit) {
        super(name);
        this.limit = limit;
    }

    @Override
    protected boolean resolve(Integer trouble) {
        if(trouble<limit){
            return true;
        }
        return false;
    }
}
